clear all
global system "linux"

if "${system}" == "linux" {
	*global code "/"
	global code "/"
	global s "/"
}

run "${code}${s}_set-path.do"

**** 0. Data Prep
cd "${code}/tba_elig"
qui do  _HARP-dataprep

use "${temp}/gse_id-harp-temp.dta", clear // _HARP-dataprep.do

qui do "${code}/tba_elig/_HARP-create-vars.do" // create necesary variables
qui do "${code}/tba_elig/_HARP-sampleselection.do" // sample selection
gen date = string(dofm(orig_ym), "%td")
save "${temp}/gse_id-harp-cleaned.dta", replace
